<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>自动跳转页面</title>
<style>
    body {
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center; 
        align-items: center; 
        height: 100vh; 
    }
    .container {
        text-align: center;
        display: flex;
        flex-direction: column; 
        gap: 10px; 
    }
    .box {
        padding: 20px;
        border: 1px solid #ccc;
        background-color: #f5f5f5;
        text-align: center;
    }
</style>
</head>
<body>

<div class="container">
<div class="box">提交成功</div>
<div class="box">1秒后系统会自动跳转,<a href="https://www.example.com" class="link" target="_blank">也可单击此链接跳转</a></div>


<script>
        setTimeout(function() {
        window.location.href = 'https://www.example.com';
    }, 5000);

        document.querySelector('.link').addEventListener('click', function(event) {
        event.preventDefault(); 
        window.location.href = this.href; 
    });
</script>

</body>
</html>